$(function () {
    $.ajax({
        url: 'http://localhost:3000/guid/hot',
        type: 'get',
        success: function (res) {
            var str = '';
            $.each(res, function (i, item) {
                str += `
                <li>
                    <img src="${item.img}">
                    <p>
                        ${item.text}
                    </p>
                    <p style="margin-top:10p"><span><img src="../CSS/img/zan.png">3 &nbsp;<img src="../CSS/img/reply.png">3</span>
                    </p>
                </li>
                `;
            })
            $('.nei2-bottom>ul').html(str);
            $('.nei2-bottom>ul>li').click(function () {
                window.open('./guid-data3.html', '_self')
            })
            $('.more').click(function () {
                $('.kuanZhong').css('height', 935);
                $('.more').css('display', 'none');
            })
        }
    })
})